\hypertarget{classduye_1_1_thread}{\section{duye\-:\-:Thread Class Reference}
\label{classduye_1_1_thread}\index{duye\-::\-Thread@{duye\-::\-Thread}}
}


P\-O\-S\-I\-X thread wrapper.  




{\ttfamily \#include $<$duye\-\_\-thread.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classduye_1_1_thread_a56b0fc51094131bec6cc918ce85015ea}{Thread} (const bool auto\-Rel=true)
\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_thread_ac6e9ce7bb0e1f2e629c64cfb0f57182a}{{\bfseries Thread} (\hyperlink{classduye_1_1_runnable}{Runnable} $\ast$target, const bool auto\-Rel=true)}\label{classduye_1_1_thread_ac6e9ce7bb0e1f2e629c64cfb0f57182a}

\item 
bool \hyperlink{classduye_1_1_thread_af6d6298cdd1b67d25479e37f33ad34ec}{start} ()
\begin{DoxyCompactList}\small\item\em startup thread \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_thread_af8594bd27beb88ebacdcc4988d8918f2}{bool {\bfseries start} (\hyperlink{classduye_1_1_runnable}{Runnable} $\ast$target, const bool auto\-Rel=true)}\label{classduye_1_1_thread_af8594bd27beb88ebacdcc4988d8918f2}

\item 
\hypertarget{classduye_1_1_thread_a43110cd70f88e31a379fe7766b0ef836}{bool \hyperlink{classduye_1_1_thread_a43110cd70f88e31a379fe7766b0ef836}{join} ()}\label{classduye_1_1_thread_a43110cd70f88e31a379fe7766b0ef836}

\begin{DoxyCompactList}\small\item\em join thread \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_thread_aa57fc85659dcac2a2dfc44fb2e3da171}{void \hyperlink{classduye_1_1_thread_aa57fc85659dcac2a2dfc44fb2e3da171}{exit} ()}\label{classduye_1_1_thread_aa57fc85659dcac2a2dfc44fb2e3da171}

\begin{DoxyCompactList}\small\item\em exit thread \end{DoxyCompactList}\item 
uint64 \hyperlink{classduye_1_1_thread_ae5508f5b5b532f054b238e7eaadf12b4}{thread\-Id} () const 
\begin{DoxyCompactList}\small\item\em get thread I\-D \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
P\-O\-S\-I\-X thread wrapper. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classduye_1_1_thread_a56b0fc51094131bec6cc918ce85015ea}{\index{duye\-::\-Thread@{duye\-::\-Thread}!Thread@{Thread}}
\index{Thread@{Thread}!duye::Thread@{duye\-::\-Thread}}
\subsubsection[{Thread}]{\setlength{\rightskip}{0pt plus 5cm}duye\-::\-Thread\-::\-Thread (
\begin{DoxyParamCaption}
\item[{const bool}]{auto\-Rel = {\ttfamily true}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [explicit]}}}\label{classduye_1_1_thread_a56b0fc51094131bec6cc918ce85015ea}


constructor 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em target} & \-: user run target object \\
\hline
\mbox{\tt in}  & {\em auto\-Rel} & \-: whether support automatic release, default is yes \\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}

\end{DoxyNote}


\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_thread_af6d6298cdd1b67d25479e37f33ad34ec}{\index{duye\-::\-Thread@{duye\-::\-Thread}!start@{start}}
\index{start@{start}!duye::Thread@{duye\-::\-Thread}}
\subsubsection[{start}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Thread\-::start (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_thread_af6d6298cdd1b67d25479e37f33ad34ec}


startup thread 

\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_thread_ae5508f5b5b532f054b238e7eaadf12b4}{\index{duye\-::\-Thread@{duye\-::\-Thread}!thread\-Id@{thread\-Id}}
\index{thread\-Id@{thread\-Id}!duye::Thread@{duye\-::\-Thread}}
\subsubsection[{thread\-Id}]{\setlength{\rightskip}{0pt plus 5cm}uint64 duye\-::\-Thread\-::thread\-Id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classduye_1_1_thread_ae5508f5b5b532f054b238e7eaadf12b4}


get thread I\-D 

\begin{DoxyReturn}{Returns}
thread I\-D 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/system/\hyperlink{duye__thread_8h}{duye\-\_\-thread.\-h}\end{DoxyCompactItemize}
